package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 页面模板对象 page_template
 * 
 * @author ruoyi
 * @date 2025-03-30
 */
public class PageTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 模板名称 */
    @Excel(name = "模板名称")
    private String name;

    /** 模板类型（carousel/product/activity） */
    @Excel(name = "模板类型", readConverterExp = "c=arousel/product/activity")
    private String type;

    /** 模板缩略图 */
    @Excel(name = "模板缩略图")
    private String thumbnail;

    /** 模板HTML内容 */
    @Excel(name = "模板HTML内容")
    private String htmlContent;

    /** 模板CSS样式 */
    @Excel(name = "模板CSS样式")
    private String cssContent;

    /** 模板JavaScript代码 */
    @Excel(name = "模板JavaScript代码")
    private String jsContent;

    /** 模板配置Schema */
    @Excel(name = "模板配置Schema")
    private String configSchema;

    /** 分类ID */
    @Excel(name = "分类ID")
    private Long categoryId;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setThumbnail(String thumbnail) 
    {
        this.thumbnail = thumbnail;
    }

    public String getThumbnail() 
    {
        return thumbnail;
    }

    public void setHtmlContent(String htmlContent) 
    {
        this.htmlContent = htmlContent;
    }

    public String getHtmlContent() 
    {
        return htmlContent;
    }

    public void setCssContent(String cssContent) 
    {
        this.cssContent = cssContent;
    }

    public String getCssContent() 
    {
        return cssContent;
    }

    public void setJsContent(String jsContent) 
    {
        this.jsContent = jsContent;
    }

    public String getJsContent() 
    {
        return jsContent;
    }

    public void setConfigSchema(String configSchema) 
    {
        this.configSchema = configSchema;
    }

    public String getConfigSchema() 
    {
        return configSchema;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("thumbnail", getThumbnail())
            .append("htmlContent", getHtmlContent())
            .append("cssContent", getCssContent())
            .append("jsContent", getJsContent())
            .append("configSchema", getConfigSchema())
            .append("categoryId", getCategoryId())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
